-- GENERATED SPELL FOR [Mutated Grub] --


function spell0_16297(pUnit, Event) --@Slime Burst,Self--
pUnit:FullCastSpellOnTarget(30109,pUnit)
pUnit:RegisterEvent('Sorts_16297', 5311, 1)
end

function spell1_16297(pUnit, Event) --@Slime Burst,Self--
pUnit:FullCastSpellOnTarget(54769,pUnit)
pUnit:RegisterEvent('Sorts_16297', 5323, 1)
end

function Sorts_16297(pUnit, Event)
local choix_sorts_16297 = math.random(0, 1)
if choix_sorts_16297 == 0 then
pUnit:RegisterEvent('spell0_16297', 1, 1)
end
if choix_sorts_16297 == 1 then
pUnit:RegisterEvent('spell1_16297', 1, 1)
end
end

function mob16297_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16297', math.random(1500, 3000), 1)
end

function mob16297_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16297_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16297_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16297, 1, 'mob16297_Action')
RegisterUnitEvent(16297, 2, 'mob16297_Leave')
RegisterUnitEvent(16297, 3, 'mob16297_Kill')
RegisterUnitEvent(16297, 4, 'mob16297_Die')
